﻿namespace configure_hot_update.Models
{
    public class WeChatSettings
    {
        public string AppId { get; set; } = "";

        public string AppSecret { get; set; } = "";

        public OAuthConfig OAuth { get; set; } = new OAuthConfig();

        public PaymentConfig Payment { get; set; } = new PaymentConfig();

        public class OAuthConfig
        {
            public string CallbackUrl { get; set; } = "";

            public string[] Scopes { get; set; } = [];
        }

        public class PaymentConfig
        {
            public string MchId { get; set; } = "";

            public string ApiKey { get; set; } = "";

            public string CertPath { get; set; } = "";
        }
    }
}
